package cn.edu.xmu.rocketmqdemo.model;

import lombok.Data;

import java.io.Serializable;

@Data
public class OrderItemVo implements Serializable {
    private int skuId;

    private int quantity;

    private int couponActId;

    public OrderItem createOrderItem() {
        OrderItem orderItem = new OrderItem();
        orderItem.setGoods_sku_id(this.skuId);
        orderItem.setQuantity(this.quantity);
        orderItem.setCoupon_activity_id(this.couponActId);
        return orderItem;
    }
}
